<script setup>
import LayoutHeader from './LayoutHeader.vue'
import LayoutFooter from './LayoutFooter.vue'
import ToolBox from './ToolBox.vue'
</script>

<template>
  <div class="layout">
    <!-- 顶部 -->
    <LayoutHeader />

    <!-- 内容区 -->
    <RouterView class="content" />

    <!-- 底部 -->
    <LayoutFooter />

    <!-- 工具栏 -->
    <ToolBox />
  </div>
</template>

<style lang="scss" scoped>
.layout {
  margin: 0 auto;
  width: 100%;
  height: 100%;
  min-width: 1200px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  font-size: 16px;
  color: #595959;
  line-height: 1.5;
  font-family: 'PingFang-SC', 'Microsoft YaHei';
  overflow: hidden;

  .content {
    flex: 1;
  }
}
</style>
